package com.wb.proxy.jdk;

/**
 * @author 魏彪
 */
public class Client {

    public static void main(String[] args) {
        // 使用动态代理
        // 获取代理类
        TargetProxy proxy = new TargetProxy(new TargetInterfaceImpl());

        TargetInterface targetClass = proxy.getProxy(TargetInterface.class);
        targetClass.sayHi();
        targetClass.work();
    }
}
